<%@ page language="java" import="gt.service.*,java.util.*,gt.domain.*" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>客户反馈查询</title>
</head>
<body>
<%
	String searchmode=request.getParameter("searchmode");
	String inputInfo=request.getParameter("inputInfo");
	System.out.println(searchmode);
	System.out.println(inputInfo);
	if("nodata".equals(searchmode)){
		;
	}
	if("khfk_id".equals(searchmode)){
		KhfkService khfkService = new KhfkService();
		Khfk khfkInfo=khfkService.getKhfkById(inputInfo);
		request.setAttribute("khfkInfo",khfkInfo);
		
		
		
	}
	if("khfk_fkbt".equals(searchmode)){
		KhfkService khfkService = new KhfkService();
		Khfk khfkInfo=khfkService.getKhfkByFkbt(inputInfo);
		request.setAttribute("khfkInfo", khfkInfo);
		
	}
%>
<img alt="" src="/ClientManager/images/khfk_search.png">

<hr>
<form action="khfk_search.jsp" method="post" target="right">
	<table height="50px" width="400px" border="1" cellspacing="0"  align="left">
	<tr><th align="center" valign="bottom" bgcolor="#FFCC33">查询方式</th><th align="center" valign="bottom" bgcolor="#FFCC33">查询输入</th><th align="center" valign="bottom" bgcolor="#FFCC33">操作</th></tr>
	<tr><td><select name="searchmode" ><option value="nodata">-------请选择-------</option><option value="khfk_id">按反馈ID查询</option><option value="khfk_fkbt">按反馈标题查询</option></select></td><td><input type="text" name="inputInfo"></td><td align="center"><input style="font-size: 15px" type="submit" value="查询"></td></tr>
 </table>
</form>
<hr>
<table  width="600px" border="1" cellspacing="0">
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">客户反馈编号:</font></td><td valign="bottom">${khfkInfo.khfk_id}</td><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">客户反馈标题:</font></td><td valign="bottom">${khfkInfo.khfk_fkbt}</td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">客户反馈日期:</font></td><td valign="bottom">${khfkInfo.khfk_fkrq}</td><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">客户名称:</font></td><td valign="bottom">${khfkInfo.khfk_khmc}</td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">客户满意程度:</font></td><td valign="bottom">${khfkInfo.khfk_khmyd}</td><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">反馈意见受理人:</font></td><td valign="bottom">${khfkInfo.khfk_fkdeal}</td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">备注:</font></td><td valign="bottom">${khfkInfo.khfk_bz}</td></tr>
	<tr ><td colspan="4" align="center" valign="bottom" bgcolor="#FFCC33">客户反馈具体内容</td></tr>
	<tr ><td colspan="4"><textarea name="khfk_fknr" cols="90" rows="10">${khfkInfo.khfk_fknr}</textarea></td></tr>

 </table>
</body>
</html>